using Abp.EntityFrameworkCore;
using Magicodes.WeChat.User;
using Microsoft.EntityFrameworkCore;

namespace Magicodes.WeChat.EntityFrameworkCore
{
    public class WeChatDbContext : AbpDbContext
    {
        static WeChatDbContext()
        {
            
        }

        public virtual DbSet<WeChatUser> WeChatUsers { get; set; }
        public WeChatDbContext(DbContextOptions<WeChatDbContext> options)
            : base(options)
        {

        }
        //protected override void OnModelCreating(DbModelBuilder modelBuilder)
        //{
        //    base.OnModelCreating(modelBuilder);

        //}
        //private static string GetConnectionString()
        //{
        //    var connectionString = IocManager.Instance.Resolve<IDbPerTenantConnectionStringResolver>()
        //         .GetNameOrConnectionString(new ConnectionStringResolveArgs(MultiTenancySides.Host));
        //    return connectionString;
        //}

    }
}
